package com.yanqu.road.entity.log.cross;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

/**
 * @Description 队伍创建/解散信息 (表放在跨服)
 * @Author cwq
 * @Data 2021/7/1 11:21
 */
@FieldTypeAnnotation(tableName = "t_l_ck_dunhuangshiku_team", desc = "敦煌-队伍创建/解散信息", autoSave = true, uploadCk = true, isCross = true)
public class LogDunHuangShiKuTeam extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "队伍id")
    private int teamId;

    @FieldTypeAnnotation(desc = "队长id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "类型 0创建 1解散")
    private int type;

    @FieldTypeAnnotation(desc = "成员用|分割 (解散时才存) ")
    private String member = "";

    public LogDunHuangShiKuTeam(int activityId, int teamId, long userId, int type, String member) {
        this.activityId = activityId;
        this.teamId = teamId;
        this.userId = userId;
        this.type = type;
        this.member = member;
    }


    public long getUserId() {
        return userId;
    }
}
